/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.gob.foncodes.sega.bs.dao.impl;

import java.io.Serializable;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import pe.gob.foncodes.sega.bs.dao.AbstractJpaDAO;
import pe.gob.foncodes.sega.bs.dao.DemoStatesDao;
import pe.gob.foncodes.sega.bs.domain.DemoStates;

/**
 *
 * @author Jesus
 */
@Repository
public class DemoStatesDaoImpl extends 
        AbstractJpaDAO<DemoStates, String> implements 
        DemoStatesDao{
    
    private static final Log log = LogFactory
			.getLog(DemoStatesDaoImpl.class);

    public DemoStatesDaoImpl() {
            log.info("INICIALIZANDO JPA TEMPLATE PARA DemoStatesDaoImpl");
    }

    public Class<DemoStates> getDomainClass() {
        return DemoStates.class;
    }

    @Transactional
    public void saveDemoStates(DemoStates param) {
        super.save(param);
    }

    @Transactional
    public void updateDemoStates(DemoStates param) {
        super.update(param);
    }

    @Transactional
    public void deleteDemoStates(DemoStates param) {
        super.delete(param);
    }

    public List<DemoStates> getAllDemoStates() {
        return super.find("from " + getDomainClass().getName());
    }

    public DemoStates getDemoStates(Long id) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    public List<DemoStates> getNativeSQLDemoStates(String queryString, Object[] params) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    public List<DemoStates> getActivasDemoStates() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    public List<DemoStates> getDesactivasDemoStates() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    public List<DemoStates> getByDemoStatesEstado(Integer estado) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
    
    
}
